
<#include "/common/head.html"/>

 <div class="easyui-panel updatePage" data-options="fit:true,border:false">
    <form id="ff" class="easyui-form" method="post">
        <table class="table1">
        	
            <tr>
           		<th><span>库位编号：</span></th>
               	<td>
               		<input class="easyui-textbox" type="text" name="loc_no" value="${model.loc_no!''}" data-options="readonly:true"></input>
           		</td>
           		
           		<th><span>条码：</span></th>
               	<td>
               		<input class="easyui-textbox" type="text" name="loc_barcode" value="${model.loc_barcode!''}" data-options=""></input>
           		</td>
           		
           		<th><span>库位名称：</span></th>
               	<td>
               		<input class="easyui-textbox" type="text" name="loc_name" value="${model.loc_name!''}" data-options=""></input>
           		</td>
           		
            </tr>
            <tr>
           		<th><span>所属仓库：</span></th>
               	<td>
               		<input id="storage_no" name="storage_no" class="easyui-combobox" value="${model.storage_no!''}" data-options="
               				
               				valueField: 'id',
        					textField: 'text',
        					data:[
        						{id:'', text:''}<#list dictDatastorage_no.keySet() as key>,{id:'${key}', text:'${dictDatastorage_no.get(key)}'}</#list>
	               			]
               		"/>
           		</td>
           		
           		<th><span>库位类型：</span></th>
               	<td>
               		<input id="Loc_type" name="Loc_type" class="easyui-combobox" value="${model.Loc_type!''}" data-options="
               				
               				valueField: 'id',
        					textField: 'text',
        					data:[
        						{id:'', text:''}<#list dictDataLoc_type.keySet() as key>,{id:'${key}', text:'${dictDataLoc_type.get(key)}'}</#list>
	               			]
               		"/>
           		</td>
           		
           		<th><span>长：</span></th>
               	<td>
               		<input class="easyui-textbox" type="text" name="length" value="${model.length!''}" data-options=""></input>
           		</td>
           		
            </tr>
            <tr>
           		<th><span>宽：</span></th>
               	<td>
               		<input class="easyui-textbox" type="text" name="width" value="${model.width!''}" data-options=""></input>
           		</td>
           		
           		<th><span>高：</span></th>
               	<td>
               		<input class="easyui-textbox" type="text" name="height" value="${model.height!''}" data-options=""></input>
           		</td>
           		
           		<th><span>X坐标：</span></th>
               	<td>
               		<input class="easyui-textbox" type="text" name="x" value="${model.x!''}" data-options=""></input>
           		</td>
           		
            </tr>
            <tr>
           		<th><span>Y坐标：</span></th>
               	<td>
               		<input class="easyui-textbox" type="text" name="y" value="${model.y!''}" data-options=""></input>
           		</td>
           		
           		<th><span>Z坐标：</span></th>
               	<td>
               		<input class="easyui-textbox" type="text" name="z" value="${model.z!''}" data-options=""></input>
           		</td>
           		
           		<th><span>是否在用：</span></th>
               	<td>
               		<input id="is_use" name="is_use" class="easyui-combobox" value="${model.is_use!''}" data-options="
               				
               				valueField: 'id',
        					textField: 'text',
        					data:[
        						{id:'', text:''}<#list dictDatais_use.keySet() as key>,{id:'${key}', text:'${dictDatais_use.get(key)}'}</#list>
	               			]
               		"/>
           		</td>
           		
            </tr>
            <tr>
           		<th><span>托盘格子数：</span></th>
               	<td>
               		<input class="easyui-textbox" type="text" name="tp_tnum" value="${model.tp_tnum!''}" data-options=""></input>
           		</td>
           		
           		<th><span>使用格子数：</span></th>
               	<td>
               		<input class="easyui-textbox" type="text" name="tp_cnum" value="${model.tp_cnum!''}" data-options=""></input>
           		</td>
           		
                <td colspan="2"></td>
            </tr>
        </table>
    </form>
</div>
<script>
top.window.subPage.save = save;
function save() {
	if($("#zcurdHeadTable").form('validate')) {
		$.post("update", getParam(), function(data) {
			top.window.closeWindow();
			top.window.subPage.loadCurrDatagrid();
		});
	}
}
function getParam() {
	var param = {
	     
	    "id": ${model.id}, 
       	    "model.loc_no": getInputValue("loc_no"), 
       	    "model.loc_barcode": getInputValue("loc_barcode"), 
       	    "model.loc_name": getInputValue("loc_name"), 
       	    "model.storage_no": getInputValue("storage_no"), 
       	    "model.Loc_type": getInputValue("Loc_type"), 
       	    "model.length": getInputValue("length"), 
       	    "model.width": getInputValue("width"), 
       	    "model.height": getInputValue("height"), 
       	    "model.x": getInputValue("x"), 
       	    "model.y": getInputValue("y"), 
       	    "model.z": getInputValue("z"), 
       	    "model.is_use": getInputValue("is_use"), 
       	    "model.tp_tnum": getInputValue("tp_tnum"), 
       	    "model.tp_cnum": getInputValue("tp_cnum"), 
	}
	for(key in param) {
		if(!param[key]) {
			delete param[key];
		}
	}
	return param;
}

//扩展js
</script>
<#include "/common/foot.html"/>
